﻿using YioksPlanEditor.ObjectCopy;

namespace YioksPlanEditor.Models
{
    /// <summary>
    /// Form间传递消息
    /// </summary>
    public class SoftMessage : Model
    {
        #region 是否重启软件
        /// <summary>
        ///是否重启软件
        /// </summary>
        public bool IsRestart { get; set; }
        #endregion

        #region 是否退出软件
        /// <summary>
        ///是否退出软件
        /// </summary>
        public bool IsExit { get; set; }
        #endregion

        #region 消息内容
        private string _messageInfo = "";
        /// <summary>
        /// 消息内容
        /// </summary>
        public string MessageInfo
        {
            get { return _messageInfo; }
            set
            {
                _messageInfo = value;
            }
        }
        #endregion

        public SoftMessage()
        {
            SetDefaultProp("IsRestart", false);
            SetDefaultProp("IsExit", false);
        }
    }
}
